package com.mjx.algorithm.oj;

import java.util.Scanner;

/**
 * 水
 * Created by 梅京翔 on 2017 02 11下午 8:26.
 */
public class problem1257 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n,taget;
        n = scanner.nextInt();
        taget = scanner.nextInt();
        int pos = 0;
        for (int i = 0; i < n; i++) {
            int num = scanner.nextInt();
            if (num == taget){
                pos = i + 1;
                break;
            }
        }
        System.out.println(pos);
    }
}
